package day06;

public class MethodDemo {
    public static void main(String[] args) {
       aMethod();
        System.out.println(444);
    }

    public static int[] testArray(int len,int max){
        int[] arr=new int[len];
        for (int i=0;i<arr.length;i++){
           arr[i]=(int)(Math.random()*(max+1));
        }
        return arr;
    }
    public  static int plus(int num1,int num2) {
        int num = num1 + num2;
        return num;
    }
    public  static double getNum(){
    return(1.1);
    }
    public  static void aMethod(){
        System.out.println(111);
        bMethod();
        System.out.println(333);
    }
    public  static void bMethod(){
        System.out.println(222);
    }
    public  static void sayHello(String name,int age){
        if(age>60){
            return;
        }
            System.out.println("大家好，我叫"+name+"我今年"+age+"岁了！");
    }
    public  static void sayHi(String name){
        System.out.println("大家好，我叫"+name+"我今年33岁了！");
    }
    public static void say(){
        System.out.println("大家好，我是yjs");
    }
}
